# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=sdl2_pango
pkgver=2.1.5
pkgrel=2
pkgdesc="Pango SDL binding"
arch="all"
url="https://github.com/markuskimius/SDL2_Pango"
license="LGPL-2.1-or-later"
depends_dev="pango-dev"
makedepends="$depends_dev sdl2-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/markuskimius/SDL2_Pango/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/SDL2_Pango-$pkgver"
options="!check" # seemingly can't run them

prepare() {
	default_prepare
	update_config_guess
	update_config_sub
}

build() {
	CFLAGS="$CFLAGS -flto=auto" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
381fce666949211f2c25b73e8ccc97e2b96aab725dc5f74135c7e62ffb6fb93053b0323c79f1c32ceab03a4ef335cf407979d82f1ab0778610e7dcbfc42b6e9c  sdl2_pango-2.1.5.tar.gz
"
